<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>animation</title>
		<style>
			.square {
				height: 100px;
				width: 100px;
				background-color: red;
				animation-name: move;
				animation-duration: 3s;
				animation-iteration-count: infinite;
				animation-timing-function: ease-in-out;
			}

			@keyframes move {
				0% {
					transform: translate(100px, 100px);
				}

				30% {
					transform: translate(200px, 200px);
				}

				100% {
					transform: translate(500px, 500px);
				}
			}
		</style>
	</head>

	<body>
		<div class="square"></div>
	</body>
</html>
